import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/res/repo/',
    method: 'get',
    params
  })
}

export function addRow(params) {
  return request({
    url: '/res/repo/',
    method: 'post',
    data: params
  })
}
export function delRow(params) {
  return request({
    url: '/res/repo/' + params.id + '/',
    method: 'delete',
    params
  })
}

export function editRow(id, params) {
  return request({
    url: '/res/repo/' + id + '/',
    method: 'put',
    data: params
  })
}
